<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>如何只在水平方向重复背景图像</title>
</head>

<body>
    <style>
        body {
            background-image: url("../图片/WechatIMG4.jpeg");
            background-repeat: repeat-x;
        }
    </style>
    </head>


    <h1>Hello World!</h1>

    <p>在这里，背景图像仅在水平方向上重复！</p </body>

</html>